package com.demo.server;

import com.demo.server.core.Environment;
import com.demo.server.core.StopWatch;
import com.demo.server.servce.MessagePush;
import com.demo.server.servce.MessagePushImpl;
import com.demo.server.servce.Server;

/**
 * @author:谢君臣
 * @Date:2021/7/25-15:11
 * @version:1.0
 * @function:
 */
public class application {
    public static void main(String[] args) {
        StopWatch stopWatch = new StopWatch();
        stopWatch.start("main");
        // 创建运行环境
        Environment environment = Environment.newInstance();
        environment.setPort(8888);
        // 创建一个线程，开去服务器
        new Thread(Server::new).start();
        stopWatch.stop();
    }
}
